package org.szy.plugin.sys.param;

import org.noear.solon.validation.annotation.Length;
import org.noear.solon.validation.annotation.NotNull;

/**
 * 用户和角色关联添加参数
 *
 * @author wangbuhao
 * @date  2023/02/16 18:38
 **/
public class SysUserRoleAddParam {

    /** 角色标识 */
    @NotNull(message = "角色标识不能为空")
    @Length(max = 19, message = "角色标识最高长度为19")
    private Object userId;

    /**
     * 角色Json
     */
    private String roleJson;

    public Object getUserId() {
        return userId;
    }

    public void setUserId(Object userId) {
        this.userId = userId;
    }

    public String getRoleJson() {
        return roleJson;
    }

    public void setRoleJson(String roleJson) {
        this.roleJson = roleJson;
    }
}
